<?php
class Main extends GetData{

	private $daten;
	public $System;

	public function __construct($match){
		$this->daten = $match;
	}

	public function getWort($obj){
		$this->System = $obj;
		parent::GetData();

		//throw new Exception (CHANGE_CONTROLLER);
		if($this->System->url != '/'){
			HTTP::redirect($this->System->Settings['404']);
		}

		$crumb = new Crumb($obj);
		$this->System->design->assign ('bcn', $crumb->getCrumb_Name());
		$this->System->design->assign ('bcrumb',$crumb->getCrumb());
		$this->System->design->assign ('css',"startseite");
		$this->System->design->assign ('js',"jsHome");

		$Visitor_Total = visitors::getVisitorsTotalByUserId($this->ActivUser->id);
	    
		$navi = user_static_pages::getNavi("Neuigkeiten","NULL");		
		$this->System->design->assign ('navi',$navi);	
		
		$this->System->design->assign ('MyPagesVisitorsTotal',$Visitor_Total);
		$this->System->design->assign ('UnReadedMails',Model_Db_Mail::GetCountUnReadedMails($_SESSION ['UserId']));
		$this->System->design->assign ('Publish',DBPublish::GetLastPublish($this->ActivUser->id));
	 
		if( $cache = $this->System->design->cache( $this->System->ln.'/overview_m', $expire_time = 600 ) )
		 {
		 	echo $cache;
		 }
		 else
		 {
		 	$this->System->design->draw( $this->System->ln.'/overview_m' );
		 }
	}

}
?>